﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Developex.DatabaseWrapper
{
	/// <summary>
	/// Database errors handler
	/// </summary>
	public interface IDatabaseErrorHandler
	{
		/// <summary>
		/// Process database exception
		/// </summary>
		/// <param name="exception"></param>
		void OnDatabaseException(DatabaseException exception);

		/// <summary>
		/// Process database warning
		/// </summary>
		/// <param name="warning"></param>
		void OnDatabaseWarning(DatabaseWarning warning);
	}
}
